#!/bin/sh

set -e

if [ "$1" = "remove" -o "$1" = "upgrade" ]
then
	# remove debug files if any
	[ ! -e /usr/share/baculum/htdocs/protected/API/Logs/baculum-api.log ] ||
		rm /usr/share/baculum/htdocs/protected/API/Logs/baculum-api.log*
fi

rm /usr/share/baculum/htdocs/protected/API/Config

#DEBHELPER#

exit 0
